package com.gccloud.design.core.mp.injector;

import com.baomidou.mybatisplus.core.injector.AbstractMethod;
import com.baomidou.mybatisplus.core.injector.DefaultSqlInjector;
import com.gccloud.design.core.mp.methods.*;

import java.util.List;

/**
 * @author liuchengbiao
 * @date 2020-06-24 16:53
 */
public class StarterSqlInjector extends DefaultSqlInjector {

    @Override
    public List<AbstractMethod> getMethodList(Class<?> mapperClass) {
        List<AbstractMethod> methodList = super.getMethodList(mapperClass);
        methodList.add(new DeleteBatchByIdsWithDp());
        methodList.add(new DeleteByIdWithDp());
        methodList.add(new DeleteByMapWithDp());
        methodList.add(new DeleteWithDp());
        methodList.add(new SelectBatchByIdsWithDp());
        methodList.add(new SelectByIdWithDp());
        methodList.add(new SelectByMapWithDp());
        methodList.add(new SelectCountWithDp());
        methodList.add(new SelectListWithDp());
        methodList.add(new SelectMapsPageWithDp());
        methodList.add(new SelectMapsWithDp());
        methodList.add(new SelectObjsWithDp());
        methodList.add(new SelectOneWithDp());
        methodList.add(new SelectPageWithDp());
        methodList.add(new UpdateByIdWithDp());
        methodList.add(new UpdateWithDp());
        return methodList;
    }
}
